<%@ page import="swim.servlets.LoginServlet" %>
<%@ page import="swim.entitybeans.Registrato" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<!doctype html>  
<html>
<head>
<link rel="stylesheet" type="text/css" href="part/stile.css"/>
<link rel="stylesheet" type="text/css" href="../part/stile.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>SWIMv2 - Informazione</title>
<script type="text/javascript">
	function tornaIndietro() {
		history.back();
	}
</script>
</head>
<body>
<header> 
<h1>INFO</h1>

<%if(request.getSession().getAttribute(LoginServlet.REG) != null ){
			Registrato utente = (Registrato) request.getSession().getAttribute(LoginServlet.REG);%>

<a class="profilo" href='/WebSwim/UtenteServlet?email=<% out.print(utente.getEmail());%>'> <% out.print(utente.getNome() +" "+ utente.getCognome()); %> </a> <br />
<a class="logout" href='/WebSwim/LoginServlet?" + LoginServlet.LOGOUT+"=1'>Logout</a>

<%} %>
</header>
<div class="corpoGen">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
	
	<h3><%= (String)request.getAttribute("info") %></h3>
	<a href="javascript:tornaIndietro()">Indietro</a> 
	<a href="./base/registrato.jsp"> Profilo </a>

<div class="pushfooter"></div>

</div>
<footer>
<div>Copyright &copy 2013 SWIMv2 - Progetto Ingegneria del software 2<br> 
LISA MAZZON - FRANCESCO GRAZIOLI
</div>
</footer>
</body>
</html>
